<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
        //一行打印五个小星星
        // console.log("*****");
        var star='';
        var sum = prompt("请问打印几个小星星");
        for (var i = 0 ; i <sum ;i++){
            star = star +"*";
        }
        console.log(star);
    </script>
</head>
<body>
    
</body>
</html>